package cn.yunhe.entity;

import java.io.Serializable;

public class News implements Serializable {
    private int newsId;
    private String title;
    private String context;
    private String writeDate;

    public News(String title) {
        this.title = title;
    }

    public News(){

    }
    public News(int newsId, String title, String context, String writeDate) {
        this.newsId = newsId;
        this.title = title;
        this.context = context;
        this.writeDate = writeDate;
    }

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getWriteDate() {
        return writeDate;
    }

    public void setWriteDate(String writeDate) {
        this.writeDate = writeDate;
    }
}
